/***************************************************************
*  Copyright (c) 2007 by GroupMe! Team (www.groupme.net)
*  All rights reserved.
*
*  This file is part of the GroupMe! Project. Source code of 
*  this project is closed and redistribution of this code is
*  prohibited. 
*  
*  Contact: http://www.groupme.net
*
*  This copyright notice MUST APPEAR in all copies of the file!
***************************************************************/
package net.groupme.controller.model;

/**
 * created on Jun 22, 2007
 * 
 * Message Object for registration and profile editing forms.
 * 
 * @author Fabian Abel, <a href="mailto:abel@l3s.de">abel@l3s.de</a>
 * @author last edited by: $Author: fabian $
 * 
 * @version $Revision: 1.2 $ $Date: 2008-04-11 16:04:33 $
 */
public class UserFormMessages {
	
	//Attribute names:
	public static final String OVERALL_MESSAGE = "overallMessage";
	public static final String USERNAME_MESSAGE = "usernameMessage";
	public static final String PASSWORD_MESSAGE = "passwordMessage";
	public static final String FIRSTNAME_MESSAGE = "firstNameMessage";
	public static final String LASTNAME_MESSAGE = "lastNameMessage";
	public static final String EMAIL_MESSAGE = "emailMessage";
	public static final String FOAF_MESSAGE = "foafDocumentURLMessage";
	public static final String PHOTO_MESSAGE = "photoMessage";

	//	messages:
	private boolean registrationSuccessFul = false;
	private String overallMessage = null;
	private String usernameMessage = null;
	private String passwordMessage = null;
	private String firstNameMessage = null;
	private String lastNameMessage = null;
	private String emailMessage = null;
	private String foafDocumentURLMessage = null;
	private String photoMessage = null;
	
	/**
	 * Creates a new UserFormMessages instance with empty messages. 
	 */
	public UserFormMessages() {
		super();
		overallMessage = "";
		usernameMessage = "";
		passwordMessage  = "";
		firstNameMessage = "";
		lastNameMessage = "";
		emailMessage = "";
		foafDocumentURLMessage = "";
	}

	/**
	 * This method returns the registrationSuccessFul of a UserFormMessages object.
	 * @return the registrationSuccessFul
	 */
	public boolean isRegistrationSuccessFul() {
		return registrationSuccessFul;
	}

	/**
	 * This method sets the registrationSuccessFul of a UserFormMessages object.
	 * @param registrationSuccessFul the registrationSuccessFul to set
	 */
	public void setRegistrationSuccessFul(boolean registrationSuccessFul) {
		this.registrationSuccessFul = registrationSuccessFul;
	}

	/**
	 * This method returns the overallMessage of a UserFormMessages object.
	 * @return the overallMessage
	 */
	public String getOverallMessage() {
		return overallMessage;
	}

	/**
	 * This method sets the overallMessage of a UserFormMessages object.
	 * @param overallMessage the overallMessage to set
	 */
	public void setOverallMessage(String overallMessage) {
		this.overallMessage = overallMessage;
	}

	/**
	 * This method returns the emailMessage of a UserFormMessages object.
	 * @return the emailMessage
	 */
	public String getEmailMessage() {
		return emailMessage;
	}

	/**
	 * This method sets the emailMessage of a UserFormMessages object.
	 * @param emailMessage the emailMessage to set
	 */
	public void setEmailMessage(String emailMessage) {
		this.emailMessage = emailMessage;
	}

	/**
	 * This method returns the firstNameMessage of a UserFormMessages object.
	 * @return the firstNameMessage
	 */
	public String getFirstNameMessage() {
		return firstNameMessage;
	}

	/**
	 * This method sets the firstNameMessage of a UserFormMessages object.
	 * @param firstNameMessage the firstNameMessage to set
	 */
	public void setFirstNameMessage(String firstNameMessage) {
		this.firstNameMessage = firstNameMessage;
	}

	/**
	 * This method returns the foafDocumentURLMessage of a UserFormMessages object.
	 * @return the foafDocumentURLMessage
	 */
	public String getFoafDocumentURLMessage() {
		return foafDocumentURLMessage;
	}

	/**
	 * This method sets the foafDocumentURLMessage of a UserFormMessages object.
	 * @param foafDocumentURLMessage the foafDocumentURLMessage to set
	 */
	public void setFoafDocumentURLMessage(String foafDocumentURLMessage) {
		this.foafDocumentURLMessage = foafDocumentURLMessage;
	}

	/**
	 * This method returns the lastNameMessage of a UserFormMessages object.
	 * @return the lastNameMessage
	 */
	public String getLastNameMessage() {
		return lastNameMessage;
	}

	/**
	 * This method sets the lastNameMessage of a UserFormMessages object.
	 * @param lastNameMessage the lastNameMessage to set
	 */
	public void setLastNameMessage(String lastNameMessage) {
		this.lastNameMessage = lastNameMessage;
	}

	/**
	 * This method returns the passwordMessage of a UserFormMessages object.
	 * @return the passwordMessage
	 */
	public String getPasswordMessage() {
		return passwordMessage;
	}

	/**
	 * This method sets the passwordMessage of a UserFormMessages object.
	 * @param passwordMessage the passwordMessage to set
	 */
	public void setPasswordMessage(String passwordMessage) {
		this.passwordMessage = passwordMessage;
	}

	/**
	 * This method returns the usernameMessage of a UserFormMessages object.
	 * @return the usernameMessage
	 */
	public String getUsernameMessage() {
		return usernameMessage;
	}

	/**
	 * This method sets the usernameMessage of a UserFormMessages object.
	 * @param usernameMessage the usernameMessage to set
	 */
	public void setUsernameMessage(String usernameMessage) {
		this.usernameMessage = usernameMessage;
	}

	/**
	 * This method returns the photoMessage of a UserFormMessages object.
	 * @return the photoMessage
	 */
	public String getPhotoMessage() {
		return photoMessage;
	}

	/**
	 * This method sets the photoMessage of a UserFormMessages object.
	 * @param photoMessage the photoMessage to set
	 */
	public void setPhotoMessage(String photoMessage) {
		this.photoMessage = photoMessage;
	}
	
}
